﻿using WMS.FC.Domain.DomainObject.System;

namespace WMS.FC.Domain.DomainObject.Menu
{
    public class MenuConfigDO : DomainObjectBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 中文名称
        /// </summary>
        public string NameCN { get; set; } = string.Empty;

        /// <summary>
        /// 英文名称
        /// </summary>
        public string? NameEN { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; } = string.Empty;

        /// <summary>
        /// 类型编码
        /// </summary>
        public string TypeCode { get; set; } = string.Empty;

        /// <summary>
        /// 菜单位置
        /// </summary>
        public string MenuPositionCode { get; set; } = string.Empty;

        /// <summary>
        /// 排序
        /// </summary>
        public int SortNumber { get; set; }

        /// <summary>
        /// 菜单地址
        /// </summary>
        public string? Url { get; set; }

        /// <summary>
        /// SQL
        /// </summary>
        public string? Sql { get; set; }

        /// <summary>
        /// 字段列表
        /// </summary>
        public List<ColumnDO> ColumnList { get; set; } = new List<ColumnDO>();

        /// <summary>
        /// 按钮列表
        /// </summary>
        public List<MenuConfigDO> ButtonList { get; set; } = new List<MenuConfigDO>();
    }
}
